﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace shiyan
{
    public partial class qrCode : Form
    {
        string mesg;
        public qrCode()
        {
            InitializeComponent();
        }
        //带参数构造
        public qrCode(string msg)
        {
            InitializeComponent();
            //初始化qrCodeGraphicControl1的Text属性
            qrCodeGraphicControl1.Text = msg;
        }
        private void qrCodeGraphicControl1_Click(object sender, EventArgs e)
        {          
             
        }

        private void qrCodeBtn_Click(object sender, EventArgs e)
        {
            //改变qrCodeGraphicControl1的Text属性值为mesg
            qrCodeGraphicControl1.Text = mesg;
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            //根据文本输入初始化成员变量
            mesg = textBox1.Text; 
        }
    }
}
